/* bignumber.js v8.0.2 https://github.com/MikeMcl/bignumber.js/LICENCE */ !function(e){"use strict";var r,L=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,B=Math.ceil,T=Math.floor,U="[BigNumber Error] ",I=U+"Number primitive has more than 15 significant digits: ",C=1e14,M=14,G=9007199254740991,F=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],k=1e7,q=1e9;function j(e){var r=0|e;return 0o[s]^n?1:-1;return u==c?0:c(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else rO?e.c=e.e=null:e.c=n=a.length){if(!t)break e;for(;a.length<=c;a.push(0));u=l=0,s=(o%=M)-M+(i=1)}else{for(u=f=a[c],i=1;10<=f;f/=10,i++);l=(s=(o%=M)-M+i)<0?0:u/h[i-s-1]%10|0}if(t=t||r<0||null!=a[c+1]||(s<0?u:u%h[i-s-1]),t=n<4?(l||t)&&(0==n||n==(e.s<0?3:2)):5O?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),r[s]=n[0],r[s+1]=n[1]):(f.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw b=!1,Error(U+"crypto unavailable");for(r=crypto.randomBytes(i*=7);sn-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(e,r,n,t,i){var o,s,f,u,c,l,a,h,p=e.indexOf("."),g=y,w=N;for(0<=p&&(u=E,E=0,e=e.replace(".",""),l=(h=new _(r)).pow(e.length-p),E=u,h.c=d(X($(l.c),l.e,"0"),10,n,m),h.e=h.c.length),f=u=(a=d(e,r,n,i?(o=S,m):(o=m,S))).length;0==a[--u];a.pop());if(!a[0])return o.charAt(0);if(p<0?--f:(l.c=a,l.e=f,l.s=t,a=(l=v(l,h,g,w,n)).c,c=l.r,f=l.e),p=a[s=f+g+1],u=n/2,c=c||s<0||null!=a[s+1],c=w<4?(null!=p||c)&&(0==w||w==(l.s<0?3:2)):un;)a[s]=0,s||(++f,a=[1].concat(a));for(u=a.length;!a[--u];);for(p=0,e="";p<=u;e+=o.charAt(a[p++]));e=X(e,f,o.charAt(0))}return e}}(),v=function(){function S(e,r,n){var t,i,o,s,f=0,u=e.length,c=r%k,l=r/k|0;for(e=e.slice();u--;)f=((i=c*(o=e[u]%k)+(t=l*o+(s=e[u]/k|0)*c)%k*k+f)/n|0)+(t/k|0)+l*s,e[u]=i%n;return f&&(e=[f].concat(e)),e}function R(e,r,n,t){var i,o;if(n!=t)o=tr[i]?1:-1;break}return o}function P(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n](E[f]||0)&&s--,b<0)p.push(1),u=!0;else{for(v=E.length,N=A.length,b+=2,1<(c=T(i/(A[f=0]+1)))&&(A=S(A,c,i),E=S(E,c,i),N=A.length,v=E.length),d=N,w=(g=E.slice(0,N)).length;w=i/2&&y++;do{if(c=0,(o=R(A,g,N,w))<0){if(m=g[0],N!=w&&(m=m*i+(g[1]||0)),1<(c=T(m/y)))for(i<=c&&(c=i-1),a=(l=S(A,c,i)).length,w=g.length;1==R(l,g,a,w);)c--,P(l,No&&(c.c.length=o):t&&(c=c.mod(r))}if(i){if(0===(i=T(i/2)))break;u=i%2}else if(x(e=e.times(n),e.e+1,1),14o&&(l.c.length=o):t&&(l=l.mod(r))}return t?c:(f&&(c=w.div(c)),r?c.mod(r):o?x(c,E,N,void 0):c)},t.integerValue=function(e){var r=new _(this);return null==e?e=N:H(e,0,8),x(r,r.e+1,e)},t.isEqualTo=t.eq=function(e,r){return 0===z(this,new _(e,r))},t.isFinite=function(){return!!this.c},t.isGreaterThan=t.gt=function(e,r){return 0this.c.length-2},t.isLessThan=t.lt=function(e,r){return z(this,new _(e,r))<0},t.isLessThanOrEqualTo=t.lte=function(e,r){return-1===(r=z(this,new _(e,r)))||0===r},t.isNaN=function(){return!this.s},t.isNegative=function(){return this.s<0},t.isPositive=function(){return 0t&&(t=this.e+1),t},t.shiftedBy=function(e){return H(e,-G,G),this.times("1e"+e)},t.squareRoot=t.sqrt=function(){var e,r,n,t,i,o=this,s=o.c,f=o.s,u=o.e,c=y+4,l=new _("0.5");if(1!==f||!s||!s[0])return new _(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);if((n=0==(f=Math.sqrt(+D(o)))||f==1/0?(((r=$(s)).length+u)%2==0&&(r+="0"),f=Math.sqrt(+r),u=j((u+1)/2)-(u<0||u%2),new _(r=f==1/0?"1e"+u:(r=f.toExponential()).slice(0,r.indexOf("e")+1)+u)):new _(f+"")).c[0])for((f=(u=n.e)+c)<3&&(f=0);;)if(i=n,n=l.times(i.plus(v(o,i,c,1))),$(i.c).slice(0,f)===(r=$(n.c)).slice(0,f)){if(n.e